package anshe.event
{
	import flash.events.Event;

	public class AnsheNetEvent extends Event
	{
		public static const SO_BROADCAST:String	= "onServerSystemBroadcast";	//	SharedObject 全局广播				
		public static const SO_MESSAGE:String	= "onServerReturn";		//	SharedObject 消息
		public static const SO_RUSH_DATA:String	= "onSync";		//	SharedObject 连接成功信息
		public static const SO_JOIN:String		= "joinSo";		//	向服务器注册 SharedObject		
		public static const SO_STATUE:String	= "serverLog";	//	Server 端的状态
		
		public static const SERVER_BROADCAST:String = "onServerSystemBroadcast";	//	Server 全局广播
		public static const SERVER_MESSAGE:String	= "onServerReturn";	//	Server 消息
		
		public static const SERVER_CONN_ERROR:String	= "onConnError";	//	连接服务器时出错
		public static const SERVER_CONN_COMPLETE:String	= "onConnComplete";	//	连接服务器成功
		public static const SERVER_CLOSE:String			= "onServerClose";		//	服务器关闭
		 
		public static const GET_USER_INFO:String	= "onUserInfo";		//	取得用户信息
		public static const GET_SERVER_INFO:String	= "onServerInfo";	//	取得服务器信息				
		public static const SEND_COMMAND:String		= "sendCommand";	//	向服务器发送消息		
		public static const START_SERVER:String		= "startServer";	//	开始服务器连接	
		public static const LOAD_SWF_PRESS:String	= "loadSWFPress";	//	下载 SWF 文件进行中
		public static const LOAD_SWF_DONE:String	= "loadSWFDone";	//	下载 SWF 文件完毕
		public static const LOAD_SWF_ERROR:String	= "loadSWFError";	//	下载 SWF 文件时出错
		
		public static const ACS_NETSPACE_NAME:String	= "AnsheNetSpace";		
		public static const ACS_SERVER_NAME:String		= "AnsheNetServer";
		public static const ACS_SWF_LOADER:String		= "AnsheSWFLoader";	
		
		public var data:Object;		//	传入的参数
		
		public function AnsheNetEvent(type:String, ...argc)
		{
			super(type);
			
			data = argc;
		}
	}
}